//
//  YGDomeViewController.swift
//  SwiftWebo
//
//  Created by 王勇 on 2018/5/27.
//  Copyright © 2018年 Brave. All rights reserved.
//

import UIKit

class YGDomeViewController: YGBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(String(describing: navigationController?.childViewControllers.count ?? 0))个"
    }

   
    @objc private func nexteNav(){
    
        let vc = YGDomeViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    
    }
    
}

// MARK: - 设置界面
extension YGDomeViewController {
    
    override func setupUI() {
        super.setupUI()
        
//        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style: .plain, target: self, action: #selector(nexteNav))
navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", fontSize: 16, target: self, action: #selector(nexteNav))
    }
    
    
    
}

